package org.leumasjaffe.initiativeTracker.event;

import static org.leumasjaffe.initiativeTracker.operator.InitiativeController.tracker;


import javax.swing.AbstractAction;

import org.leumasjaffe.initiativeTracker.Constants;
import org.leumasjaffe.initiativeTracker.entity.CharacterList;
import org.leumasjaffe.initiativeTracker.operator.UnitManager;
import org.leumasjaffe.initiativeTracker.view.InitiativeFrame;

@SuppressWarnings("serial")
public abstract class InitiativeTrackerAction extends AbstractAction {
	protected static CharacterList list;
	protected static InitiativeFrame gui;
	protected static UnitManager root;
		
	public InitiativeTrackerAction(String text) {
		super(text);
	}
	
	@SuppressWarnings("null")
	public static void init() {
		gui = InitiativeFrame.getInstance();
		root = tracker(Constants.id).root;
		list = tracker(Constants.id).list;
	}
	
}
